#include "Server_Udp.hpp"
#include "User.hpp"
using namespace ThreadPoolModule;
int main()
{
    ThreadPool<task_t>::GetInstance()->Start();
    UserManager um;
    
    //添加用户
    Server s([&um](InetAddr& id){um.AddUser(id);},
             [&um](int sockfd,std::string& message){um.Router(sockfd,message);},
             [&um](InetAddr& id){um.DelUser(id);});
    s.Start();
    return 0;
}